package com.xgp.company.结构性模式.桥接模式;

/**
 * 抽象的电脑类型类
 */
public abstract class Computer {

    //组合：品牌，电脑自带品牌
    protected Brand brand;

    public Computer(Brand brand) {
        this.brand = brand;
    }

    protected void info() {
        //自带品牌
        brand.info();
    }
}
